Expand description
A procedural noise generation library for Rust.
§Example
use noise::{NoiseFn, Perlin, Seedable};
let perlin = Perlin::new(1);
let val = perlin.get([42.4, 37.7, 2.8]);
Re-exports§
pub use crate::math::vectors::*;
Modules§
- An ultra-light private math library to make our short lives easier as we implement super-complex noise stuff.
Structs§
- Noise function that outputs the absolute value of the output value from the source function.
- Noise function that outputs the sum of the two output values from two source functions.
- Noise function that outputs heterogenous Multifractal noise.
- Noise function that outputs “billowy” noise.
- Noise function that outputs a weighted blend of the output values from two source functions given the output value supplied by a control function.
- Noise function that caches the last output value generated by the source function.
- Noise function that outputs a checkerboard pattern.
- Noise function that clamps the output value from the source function to a range of values.
- Noise function that outputs a constant value.
- Noise function that maps the output value from the source function onto an arbitrary function curve.
- Noise function that outputs concentric cylinders.
- Noise function that uses multiple source functions to displace each coordinate of the input value before returning the output value from the
source
function. - Noise function that maps the output value from the source function onto an exponential curve.
- Noise function that outputs fBm (fractal Brownian motion) noise.
- Noise function that outputs hybrid Multifractal noise.
- Noise function that outputs the larger of the two output values from two source functions.
- Noise function that outputs the smaller of the two output values from two source functions.
- Noise function that outputs the product of the two output values from two source functions.
- Noise function that negates the output value from the source function.
- Noise function that outputs 2/3/4-dimensional Open Simplex noise.
- Noise function that outputs 1/2/3/4-dimensional Perlin noise.
- Noise function that outputs 2/3/4-dimensional Perlin noise.
- Noise function that raises the output value from the first source function to the power of the output value of the second source function.
- Noise function that outputs ridged-multifractal noise.
- Noise function that rotates the input value around the origin before returning the output value from the source function.
- Noise function that applies a scaling factor and a bias to the output value from the source function.
- Noise function that scales the coordinates of the input value before returning the output value from the source function.
- Noise function that outputs the value selected from one of two source functions chosen by the output value from a control function.
- Noise function that outputs N-dimensional Simplex noise.
- Noise function that outputs 2/3-dimensional Super Simplex noise.
- Noise function that maps the output value from the source function onto a terrace-forming curve.
- Noise function that moves the coordinates of the input value before returning the output value from the source function.
- Noise function that randomly displaces the input value before returning the output value from the source function.
- Noise function that outputs 2/3/4-dimensional Value noise.
- Noise function that outputs Worley noise.
Traits§
- Trait for
MultiFractal
functions - Base trait for noise functions.
- Trait for functions that require a seed before generating their values